<?php /*a:1:{s:67:"D:\workspace\admin\application\admin\view\user\stat_ticket_log.html";i:1748242422;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
</head>

<body>

<div  class="layui-fluid">

    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card" id="p_popUp_a">
                <div class="layui-card-header">
                    <font >今日发放总数量 </font>

                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font"><?php echo htmlentities($ticket_stat["ticket_count"]); ?></p>
                    <p>
                        人数（去重）
                        <span class="layuiadmin-span-color"><?php echo htmlentities($today_user_count); ?> </span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card" id="p_popUp_b">
                <div class="layui-card-header">
                    <font >今日注册发放数量</font>
                </div>

                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font"><?php echo htmlentities($ticket_stat["register_count"]); ?></p>
                    <p>
                        人数
                        <span class="layuiadmin-span-color"><?php echo htmlentities($today_register_user_count); ?></span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card" id="p_popUp_c">
                <div class="layui-card-header">
                    <font >今日游戏签到数量</font>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font"><?php echo htmlentities($ticket_stat["signin_count"]); ?></p>
                    <p>
                        人数
                        <span class="layuiadmin-span-color"><?php echo htmlentities($today_signin_user_count); ?></span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card" id="p_popUp_d">
                <div class="layui-card-header">
                    <font >今日绑定充值发放数量</font>

                </div>
                <div class="layui-card-body layuiadmin-card-list">

                    <p class="layuiadmin-big-font"><?php echo htmlentities($ticket_stat["recharge_count"]); ?></p>
                    <p>
                        人数
                        <span class="layuiadmin-span-color"><?php echo htmlentities($today_recharge_user_count); ?></span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card" id="p_popUp_d">
                <div class="layui-card-header">
                    <font >今日人工发放数量</font>

                </div>
                <div class="layui-card-body layuiadmin-card-list">

                    <p class="layuiadmin-big-font"><?php echo htmlentities($ticket_stat["customer_count"]); ?></p>
                    <p>
                        人数
                        <span class="layuiadmin-span-color"><?php echo htmlentities($today_customer_user_count); ?></span>
                    </p>
                </div>
            </div>
        </div>
    </div>


    <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <form name="formName" id="sbumitForm" onsubmit="return false">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">时间段选择</label>
                    <div class="layui-input-inline">
                        <select name="type" id="type">
                            <option value="">不限</option>
                            <option value="1">今日</option>
                            <option value="2">昨日</option>
                            <option value="3">过去7天</option>
                            <option value="4">过去30天</option>
                        </select>
                    </div>
                </div>

                <div class="layui-inline">
                    <label class="layui-form-label">发放时间</label>
                    <div class="layui-input-inline" style="width: 350px;">
                        <input type="text" name="start_time" placeholder="开始时间" autocomplete="off" class="layui-input" style="width: 167px;display: inline" id="start_time_input">
                        -
                        <input type="text" name="end_time" placeholder="截止时间" autocomplete="off" class="layui-input" style="width: 167px;display: inline" id="end_time_input">
                    </div>
                </div>


                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-orderlist" lay-submit lay-filter="LAY-stat-front-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>

            </div>
        </form>
    </div>

    <div class="layui-card">

        <div class="layui-card-body">
            <table id="LAY-stat-manage" lay-filter="LAY-stat-manage"></table>
        </div>
    </div>

</div>


<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'stat_ticket_log', 'table', 'laydate'], function () {
        var $ = layui.$
            , form = layui.form
            , table = layui.table
            , laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start_time_input',
            type: 'datetime'
        });
        laydate.render({
            elem: '#end_time_input',
            type: 'datetime'
        });

        //监听搜索
        form.on('submit(LAY-stat-front-search)', function (data) {
            var field = data.field;
            //执行重载
            table.reload('LAY-stat-manage', {
                where: field
                , page: {
                    curr: 1   //默认从第一页开始搜索
                },
            });
        });
    });
</script>

</body>
</html>